package com.yundasys.lab10designpattern.adapter;

import com.yundasys.lab10designpattern.adapter.controller.SimpleController;

/**
 * @author jiangta
 * @version 1.0
 * @date 2021/5/14 11:30 上午
 */
public class SimpleHandlerAdapter implements HandlerAdapter {
    @Override
    public boolean supports(Object handler) {
        return (handler instanceof SimpleController);
    }

    @Override
    public void handler(Object handler) {
        ((SimpleController)handler).doSimpleHandler();
    }
}
